﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JJY.DBUtility;
using NBA.Utility;
using System.Data.SqlClient;

namespace NBA.DBUtility
{
    public class NbaEntityHelper<T> : SQLEntityHelper<T> where T : class
    {
        public static T GetEntity(string sql, params SqlParameter[] sqlParameters)
        {
            return GetEntity(AppSettingManager.ConnectionString, sql, sqlParameters);
        }

        public static List<T> GetEntitySet(string sql, params SqlParameter[] sqlParameters)
        {
            return GetEntitySet(AppSettingManager.ConnectionString, sql, sqlParameters);
        }
    }
}
